package com.mycompany.project.client;

import com.google.gwt.event.shared.GwtEvent;

public class OpenPreviewEvent extends GwtEvent<OpenPreviewEventHandler>{
	
	public static Type<OpenPreviewEventHandler> TYPE=new Type<OpenPreviewEventHandler>();
	private double previewPlayPosStart;
	
	public OpenPreviewEvent(double previewPlayPos){
		previewPlayPosStart=previewPlayPos;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<OpenPreviewEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(OpenPreviewEventHandler handler) {
		handler.onPreviewOpened(this);		
	}

	public double getPreviewPlayPosStart(){
		return previewPlayPosStart;
	}
	
}
